Miner.Responder.Shared.Channels.MSMQ Namespace > StructConverter Class > ToStruct Method : ToStruct<T>(Byte[],Int32) Method |
'Declaration
Public Overloads Shared Function ToStruct(Of T As {New, Struct})( _ ByVal buffer() As System.Byte, _ ByVal startIndex As System.Integer _ ) As T
'Usage
Dim buffer() As System.Byte Dim startIndex As System.Integer Dim value As T value = StructConverter.ToStruct(Of T)(buffer, startIndex)
public static T ToStruct<T>( System.byte[] buffer, System.int startIndex ) where T: new(), struct
public function ToStruct( buffer: System.Bytearray of; startIndex: System.Integer ): T; static;
public static function ToStruct( buffer : System.byte[], startIndex : System.int ) : T;
public: static T* ToStruct<T>( System.byte[]* buffer, System.int startIndex ) where T: gcnew(), value class
public: static T^ ToStructgeneric<typename T> ( System.array<byte>^ buffer, System.int startIndex ) where T: gcnew(), value class
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2